//指针与数组
#include<iostream>
#include<string.h>

using namespace std;
int main()
{
	int arr[] = { 1,2,3,4,5,6,7,8,9 };
	int* p = arr;
	cout << "第一个元素：" << arr[0] << endl;
	cout << "指针访问第一个元素:" << *p << endl;
	for (int i = 0; i <9; i++)
	{
		cout << *p << " " << endl;;
		p++;
	}

	system("pause");
	return 0;
}